
class EventEmitter {
    constructor() {
      this.events = {};
    }
    on(eventName, fn) {
      this.events[eventName] = fn;
    }
    emit(eventName, ...args) {
      this.events[eventName](...args);
    }
  }
  module.exports = new EventEmitter();